473,431 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,431 software developers and data experts.

how to pass a value from one application to another

hi

i have to pass a value in the textbox in one application to another one in run time. Two application resides in the same domain. how can i do it?

Thanks and regards

GRACE
Sep 16 '08 #1
7 5315
PRR
750 Expert 512MB
is it a windows form application?
if yes then create a static class and have a static field... and update the field on form1 and then you can access it from form 2...
in case you intent do something else plz clarify... and provide a sample code..
Sep 16 '08 #2
is it a windows form application?
if yes then create a static class and have a static field... and update the field on form1 and then you can access it from form 2...
in case you intent do something else plz clarify... and provide a sample code..
Actually the two applications are web applications done in c# and the two are hosted in the same domain by using two folders . I want to pass the value of a text box in one application to another application. There is an html page for connecting these two applications ..
I have a login page and then redirected to the html page . from that html page by using a link button i am calling anither application.So i want to pass the value of the taxt box in the login page to the application which is called by using the html page.

Please reply as early as possible.

Thanks and regards
Grace
Sep 17 '08 #3
PRR
750 Expert 512MB
Actually the two applications are web applications done in c# and the two are hosted in the same domain by using two folders . I want to pass the value of a text box in one application to another application. There is an html page for connecting these two applications ..
I have a login page and then redirected to the html page . from that html page by using a link button i am calling anither application.So i want to pass the value of the taxt box in the login page to the application which is called by using the html page.

Please reply as early as possible.

Thanks and regards
Grace
How about query string? If its a textbox value... i guess query string will do...
Sep 17 '08 #4
How about query string? If its a textbox value... i guess query string will do...
Actually my need is to block the access of my site by pasting the url directly to the explorer's addess bar. If i am using a querystring then it can be easily copied and pasted to another window and can access my site.
I want to access the value inside a textbox of application1 in application2.Since these two are different web applications session variable or application variable can't use to stroe the value

Any idea Please help

Grace
Sep 17 '08 #5
PRR
750 Expert 512MB
Actually my need is to block the access of my site by pasting the url directly to the explorer's addess bar. If i am using a querystring then it can be easily copied and pasted to another window and can access my site.
I want to access the value inside a textbox of application1 in application2.Since these two are different web applications session variable or application variable can't use to stroe the value

Any idea Please help

Grace
Well how about database? you could store values from one appl and access it from other? you will have to use same databse though...still access rules can be different..
Sep 17 '08 #6
Curtis Rutland
3,256 Expert 2GB
Actually my need is to block the access of my site by pasting the url directly to the explorer's addess bar. If i am using a querystring then it can be easily copied and pasted to another window and can access my site.
I want to access the value inside a textbox of application1 in application2.Since these two are different web applications session variable or application variable can't use to stroe the value

Any idea Please help

Grace
Well, you could use POST, that would obfuscate your values.

But you can't just reach into one application from another and grab a value.
Sep 17 '08 #7
Simpliest way is to hook both applications up to a database.
Sep 19 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: z_learning_tester | last post by:
I'm reading the MS press C# book and there seems to be a contradiction. Please tell me which one is correct, 1 or 2. Thanks! Jeff 1. First it gives the code below saying that it prints 0 then...
4
by: tom | last post by:
Hi Experts, I want to pass the selectedDate value from my calender form to another web form or a web user control. Could you please show me how to do this? Thanks in advance.
2
by: c676228 | last post by:
Hi, This is my first time to post asp.net question on this forum. I have a question for "How to pass the first form value to the next form" I have enrollinfo.aspx form which look like as follow:...
1
by: beachboy | last post by:
how can pass the login (security info) to secondary application? ASP.NET 1.1 user login to application 1(app1.myapp.com) with their username and password, then they have a link to application 2...
17
by: Rabbit | last post by:
Hi, On my 1st page, i have a function which gets a new ID value and need to transfer to another immediately. which I want to get in 2nd page using Request.form("txtID"), but doesn't work, the...
2
by: Karl Rhodes | last post by:
I have an application which uses mutliple forms for different tasks, all of which are mdi child forms to the applications MDI Parent form. One of these child forms (form1) will be used to select...
13
Frinavale
by: Frinavale | last post by:
One of the most fundamental topics in web design is understanding how to pass information collected on one web page to another web page. There are many different ways you could do this: Cookies,...
11
by: venkatagmail | last post by:
I have problem understanding pass by value and pass by reference and want to how how they are or appear in the memory: I had to get my basics right again. I create an array and try all possible...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.